package cn.wolfcode.luowowo.comment.domain;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Document("spot_comment")
public class SpotComment implements Serializable {
    public static final int SPOT_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int SPOT_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String id;  //mongodb的id

    private Long spotId;  //景点id

    private Long userId;  //用户id

    private String username;  //用户名

    private String userheadUrl; //用户头像

    private int userlevel;  //用户等级

    private List<Pic> pic;  //评论图片

    private String content;  //评论内容

    private int thumpUpNum;  //点赞数

    private Long thumpUpId;  //点赞用户id


    private Date time;  //评论时间

    private int type;  //评论类型

    private SpotComment spotComment;  //关联的评论

    private int pingjia;  //总体评价

    private int fengguang;  //风光

    private int tese;  //特色

    private int fuwu;  //服务
}
